import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int k=sc.nextInt();
        double sum=0;
        int count=0;
        while(sum<=k){
            count++;
            sum+=1.0/count;
        }
        System.out.println(count);
    }
}